﻿using System.Windows;
using System.Windows.Input;
using Microsoft.Phone.Controls;

namespace FastestWays.Views
{
    public partial class Settings : PhoneApplicationPage
    {
        public Settings()
        {
            InitializeComponent();
        }

        private void LocationServicesToggleUnchecked(object sender, RoutedEventArgs e)
        {
            MessageBoxResult messageBoxResult = MessageBox.Show("This application requires Location Services in order to function properly, are you sure you want to turn it off?", "Location Services change", MessageBoxButton.OKCancel);
            if (messageBoxResult == MessageBoxResult.Cancel)
            {
                locationServicesToggle.IsChecked = true;
            }
            else
            {
                locationServicesToggle.IsChecked = false;
            }
        }
    }
}